<?php

class BelajarController extends Controller{
    public $layout="null";

    public function actionIndex(){
        echo "menampilkan text/data melalui controller langsung<br>";
        //echo  Yii::app()->request->baseUrl;
		echo Yii::app()->homeUrl;
	}

	 public function actionTampil(){
        $this->render('tampil_view');
    }
	
	 public function actionCoba(){
        echo "test aja lagi";
    }

    public function actionTampildata(){
        $data=array('mangga','manggis','anggur','jeruk','rambutan','durian');
        $this->render('tampil_view',array('data'=>$data));
    }

	public function actionTampillink(){
        $this->render('link_view');
    }	

	public function actionPopup(){
        $this->render('coba_popup');
    }	

}